package org.seis645.mm.model;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileNotFoundException;
import java.io.IOException;

public class One_Model {
	
	public void PrintSomething() {
		File file = new File("text.txt");
		StringBuffer contents = new StringBuffer();
		BufferedReader reader = null;

		try {
			reader = new BufferedReader(new FileReader(file));
			String text = null;
			while((text = reader.readLine()) != null) {
				contents.append(text)
				.append(System.getProperty("line.spearator"));
			}
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch(IOException e) {
			e.printStackTrace();
		} finally {
			try{
				if(reader != null) {
					reader.close();
				}
			} catch(IOException e) {
				e.printStackTrace();
			}
		}
		System.out.println(contents.toString());
	}

}
